/*
 * Copyright 2017 Baiyyy
 * @(#)Warning.java
 */

package com.byyy.ccts.modules.cc.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byyy.ccts.modules.cc.entity.ccts.TSDeviceWarningLog;
import com.byyy.ccts.modules.sys.entity.Log;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by DELL on 2018-8-21.
 */
public interface DeviceWarningLogMapper extends BaseMapper<TSDeviceWarningLog> {

    /**
     * 根据设备、类型、标题来查询列表
     * @param deviceId
     * @param type
     * @param title
     * @return
     */
    List<TSDeviceWarningLog> queryWarning(@Param("deviceId") String deviceId,
                                          @Param("type") String type,
                                          @Param("title") String title);

    List<TSDeviceWarningLog> selectLogPage(Page<TSDeviceWarningLog> page, @Param("ew") Wrapper<TSDeviceWarningLog> wrapper);
}
